package com.eduction.modules.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "t_school")
@Entity
public class School {
	private String p_id;
	private String s_name;
	private String p_city_id;
	private String p_type_id;
	private String p_password;
	private String s_state;//1- 未提交 2-已提交
	
	private String cityName;
	private String typeName;
	
	private String s_write;

	private String year;
	
	@Transient
	public String getS_write() {
		return s_write;
	}
	public void setS_write(String s_write) {
		this.s_write = s_write;
	}
	@Transient
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	@Transient
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "p_id")
	public String getP_id() {
		return p_id;
	}
	public void setP_id(String p_id) {
		this.p_id = p_id;
	}
	@Column(name = "s_name")
	public String getS_name() {
		return s_name;
	}
	public void setS_name(String s_name) {
		this.s_name = s_name;
	}
	@Column(name = "p_city_id")
	public String getP_city_id() {
		return p_city_id;
	}
	
	public void setP_city_id(String p_city_id) {
		this.p_city_id = p_city_id;
	}
	@Column(name = "p_type_id")
	public String getP_type_id() {
		return p_type_id;
	}
	public void setP_type_id(String p_type_id) {
		this.p_type_id = p_type_id;
	}
	@Column(name = "p_password")
	public String getP_password() {
		return p_password;
	}
	public void setP_password(String p_password) {
		this.p_password = p_password;
	}
	@Column(name = "s_state")
	public String getS_state() {
		return s_state;
	}
	public void setS_state(String s_state) {
		this.s_state = s_state;
	}
	@Column(name = "year")
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
}
